import Cookies from 'js-cookie'

const UserId = 'hrmanage_admin_userid'
const UserToken = 'hrmanage_admin_token'

function getUserId() {
  return Cookies.get(UserId)
}

function setUserId(userid) {
  return Cookies.set(UserId, userid)
}

function removeUserId() {
  return Cookies.remove(UserId)
}

function getUserToken() {
  return Cookies.get(UserToken)
}

function setUserToken(usertoken) {
  return Cookies.set(UserToken, usertoken)
}

function removeUserToken() {
  return Cookies.remove(UserToken)
}
export {
  getUserId,
  setUserId,
  removeUserId,
  getUserToken,
  setUserToken,
  removeUserToken
}
